import java.util.Scanner;
public class thehero {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i]=scan.nextInt();
        }
        int[] b = new int[n];
        b[1]=0;
        int count=0;
        for (int i = 0; i < n-1; i++) {
            if(b[1]<a[i]){
                b[1]=a[i];
                count+=1;

            }
        }
        System.out.println(count);
        scan.close();
    }
}
